import { createRouter, createWebHashHistory } from 'vue-router';
import Login from '@/views/login';
import Welcome from '@/views/welcome'
import Countdown from '@/views/countdown'
import TaskOne from '@/views/taskOne'
import IsShowIncome from '@/views/isShowIncome'
import ShowIncome from '@/views/showIncome'
import IsShowMarket from '@/views/isShowMarket'
import Break from '@/views/break'
import ShowLineChart from  '@/views/showLineChart'
import End from  '@/views/end'
const router = createRouter({
  history: createWebHashHistory(), // hash模式：createWebHashHistory，history模式：createWebHistory
  routes: [
    {
      path: '/',
      redirect: '/login',
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
    },
    {
      path: '/welcome',
      name: 'Welcome',
      component: Welcome,
    },
    {
      path: '/countdown',
      name: 'Countdown',
      component: Countdown,
    },
    {
      path: '/taskOne',
      name: 'TaskOne',
      component: TaskOne,
    },
    {
      path: '/isShowIncome',
      name: 'IsShowIncome',
      component: IsShowIncome,
    },
    {
      path: '/showIncome',
      name: 'ShowIncome',
      component: ShowIncome,
    },
    {
      path: '/isShowMarket',
      name: 'IsShowMarket',
      component: IsShowMarket,
    },
    {
      path: '/break',
      name: 'Break',
      component: Break,
    },
    {
      path: '/showLineChart',
      name: 'ShowLineChart',
      component: ShowLineChart,
    },
    {
      path: '/end',
      name: 'End',
      component: End,
    },
  ],
});

export default router;
